package com.gtlab1207.br_security.models.domain;

import javax.validation.constraints.NotBlank;

/**
 * 用户信息实体类
 */
public class User extends BaseDomain{
    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称不能为空")
    private String userName;
    /**
     * 用户角色
     */
    @NotBlank(message = "用户角色不能为空")
    private String userRole;
    /**
     * 部门（所属组织）
     */
    @NotBlank(message = "部门（所属组织）不能为空")
    private String department;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
